import Vue from 'vue'
import {
    Button,
    Card,
    Form,
    FormItem,
    Input,
    Checkbox,
    Row,
    Col,
    Message,
    Image,
    Container,
    Aside,
    Header,
    Main,
    Menu,
    Submenu,
    MenuItem,
    Tooltip,
    Dropdown,
    DropdownMenu,
    DropdownItem,
    Avatar,
    TabPane,
    Tabs,
    Select,
    Option,
    Table,
    TableColumn,
    Pagination,
    Loading,
    Switch,
    MessageBox,
    Dialog,
    DatePicker,
    Tag,
    Upload,
    RadioGroup,
    Radio,
    Cascader,
    Tree
} from 'element-ui'

import DeptSelect from '@/components/deptSelect/DeptSelect.vue'
import StationSelect from '@/components/stationSelect/StationSelect.vue';
import PlaceCascader from '@/components/placeCascader/PlaceCascader.vue';

Vue.use(Button)
Vue.use(Card)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Input)
Vue.use(Checkbox)
Vue.use(Row)
Vue.use(Col)
Vue.use(Image)
Vue.use(Container)
Vue.use(Aside)
Vue.use(Header)
Vue.use(Main)
Vue.use(Menu)
Vue.use(Submenu)
Vue.use(MenuItem)
Vue.use(Tooltip)
Vue.use(Dropdown)
Vue.use(DropdownItem)
Vue.use(DropdownMenu)
Vue.use(Avatar)
Vue.use(TabPane)
Vue.use(Tabs)
Vue.use(Select)
Vue.use(Option)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Loading.directive)
Vue.use(Switch)
Vue.use(Dialog)
Vue.use(DatePicker)
Vue.use(Tag)
Vue.use(Upload)
Vue.use(RadioGroup)
Vue.use(Radio)
Vue.use(Cascader)
Vue.use(Tree)
Vue.component('dept-select', DeptSelect)
Vue.component('station-select', StationSelect)
Vue.component('place-cascader', PlaceCascader)

Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$confirm = MessageBox.confirm;
Vue.prototype.$message = Message;